<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            border: 1px solid black;
        }
        #menuDiv{
            width: 150px;
        }
        .head{
            height: 25px;
            background-color: aqua;
            text-align: center;
        }
        .body{
            height: 100px;
            background-color: yellow;
            text-align: center;
            display: none;
        }
    </style>
    <script src="jquery-3.2.1.min.js"></script>
    <script>
        var  showDiv;
        $(function () {
            showDiv = $("#blackDiv");

            $("#menuDiv  .head").click(function () {
                showDiv.slideUp("fast");
                $(this).next().slideDown("fast");
                showDiv = $(this).next();
            });
        });
    </script>
</head>
<body>
    <div id="menuDiv">
        <div class="head">好友</div>
        <div class="body">
            任我行<br>
            陈近南<br>
            风际中
        </div>
        <div class="head">亲人</div>
        <div class="body">
            向问天<br>
            张无忌<br>
            赵敏
        </div>
        <div class="head">黑名单</div>
        <div class="body" style="display: block" id="blackDiv">
            海大富<br>
            岳不群<br>
            林平之
        </div>
    </div>
</body>
</html>